package cn.ven.service;

import cn.ven.dao.ContentDao;
import cn.ven.entity.Content;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ContentServiceImpl implements ContentService {

    @Autowired
    ContentDao contentDao;


    @Override
    public String addContent(Content content) {
        String s = contentDao.addContent(content);
        return s;
    }

    @Override
    public Content findById(String id) {
        return contentDao.findById(id);
    }

    @Override
    public void delContent(String id) {
        contentDao.delContent(id);
    }


}
